import App from './App'
import uView from "uview-ui";
Vue.use(uView);
import request from 'common/request.js'
import {wxGetToken} from 'common/login.js'
import url from './common/config.js'
import uploadFile from './common/uploadFile.js'
Vue.prototype.$uploadFile = uploadFile;
Vue.prototype.$request = request
Vue.prototype.$url = url
Vue.prototype.$token = {"token":wxGetToken}
import commonUtil from'@/common/commonUtil.js';
Vue.mixin(commonUtil)


// 导入globalPopup.js
import globalPopup from '@/components/globalPopup/globalPopup.js';
Vue.use(globalPopup);
// 微信需要全局注册组件
// #ifdef MP-WEIXIN 
import popup from '@/components/globalPopup/globalPopup.vue' 
Vue.component('popup',popup);
// #endif


// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif